#include <iostream>
#include <set>

using namespace std;

template<typename T>
void print(const T& vec)
{
    cout<<"size:"<<vec.size()<<endl;
    for(auto ite = vec.begin(); ite != vec.end(); ite++)
    {
        cout<<*ite<<" ";
    }
    cout<<endl;
}

int main()
{
    set<string> st;
    set<int> sr{1, 3, 5};
    // 传入元素排序规则
    // greater:表示按照递增（从小到大）的顺序插入元素
    set<string, greater<string>> stri{"googd", "bad", "mdium"};
    print(sr);
    print(stri);

    if(sr.count(2))
    {
    }
    multiset<int> s{1,5,6,6,6};
    print(s);
    cout<<s.count(6)<<endl;
    





}